home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global topicLetter, gMapList, gMovieMap, gSourcePath, gPicName, gTestPath, gCDList, gCDname
- topicLetter = "A"
- gMapList = MapMenuSetup()
- if the number of lines in gMapList > 1 then
- put "Please select a TutorialGroup from the following list:" & RETURN & RETURN & gMapList into field "map list"
- if isCDinDrive() then
- gCDList = findMountedCDs()
- else
- gCDList = []
- end if
- if count(gCDList) = 0 then
- go("Insert CD prompt")
- else
- go("map choice")
- end if
- else
- sprite(7).visible = 0
- case the machineType of
- 256:
- mapFilename = the pathname & "..\MTdata\" & line 1 of gMapList
- otherwise:
- mapFilename = the pathname & ":MTdata:" & line 1 of gMapList
- end case
- mapFile = new(xtra("fileIO"))
- openFile(mapFile, mapFilename, 1)
- if status(mapFile) = 0 then
- gMovieMap = readFile(mapFile)
- closeFile(mapFile)
- else
- alert("Could not find any TutorialGroups. You may need to install this application again.")
- quitThisProgram()
- end if
- mapFile = 0
- the itemDelimiter = ";"
- gTestPath = item 1 of line 1 of gMovieMap
- gPicName = item 2 of line 1 of gMovieMap
- the itemDelimiter = ";"
- gSourcePath = item 1 of line 1 of gMovieMap
- if the machineType = 256 then
- repeat with n = 1 to the number of chars in gSourcePath
- if char n of gSourcePath = ":" then
- put "\" into char n of gSourcePath
- end if
- end repeat
- end if
- gCheckCDpath = gSourcePath
- gCDname = item 2 of line 1 of gMovieMap
- the itemDelimiter = ":"
- delete item the number of items in gSourcePath of gSourcePath
- the itemDelimiter = ","
- gSourcePath = gSourcePath & ":"
- setupTopics(gMovieMap)
- setupMovieNames(gMovieMap)
- the itemDelimiter = ";"
- gTestPath = item 1 of line 1 of gMovieMap
- gPicName = item 2 of line 1 of gMovieMap
- if the machineType <> 256 then
- if gPicName = "CSI_V3.PCT" then
- gSourcePath = "CSi vol.3:content:movie:"
- else
- if gPicName = "CSI_V4.PCT" then
- gSourcePath = "CSi vol.4:content:ie:"
- else
- if gPicName = "CSI_V5.PCT" then
- gSourcePath = "CSi vol.5:content:ie:"
- else
- if gPicName = "CSI_V6.PCT" then
- gSourcePath = "CSi vol.6:content:ie:"
- else
- if gPicName = "CSI_V7.PCT" then
- gSourcePath = "CSi vol.7:content:ie:"
- else
- if gPicName = "MT_PI.PCT" then
- gSourcePath = "CSi MT Plug-ins:content:ie:"
- else
- if gPicName = "CSi_ST1.PCT" then
- gSourcePath = "CSi ST1:content:ie:"
- else
- if gPicName = "CSI_V8.PCT" then
- gSourcePath = "CSi vol.8:content:ie:"
- else
- if gPicName = "CSI_M1.PCT" then
- gSourcePath = "DP4 CSi MASTER:content:ie:"
- else
- if gPicName = "CSI_V10.PCT" then
- gSourcePath = "CSi vol.10:content:ie:"
- else
- if gPicName = "CSI_M2.PCT" then
- gSourcePath = "Waves CSi MASTER:content:ie:"
- else
- if gPicName = "CSI_S2.PCT" then
- gSourcePath = "SONAR 3 CSi STARTER:content:ie:"
- else
- if gPicName = "CSI_M3.PCT" then
- gSourcePath = "Reason CSi MASTER:content:ie:"
- else
- if gPicName = "CSI_S3.PCT" then
- gSourcePath = "CubaseSX2 CSi STARTER:content:ie:"
- else
- if gPicName = "CSI_S04.PCT" then
- gSourcePath = "Logic CSi STARTER:content:ie:"
- else
- if gPicName = "CSI_S05.PCT" then
- gSourcePath = "DP4 CSi STARTER:content:ie:"
- else
- if gPicName = "CSI_S06.PCT" then
- gSourcePath = "Reason CSi STARTER:content:ie:"
- else
- if gPicName = "CSI_M11.PCT" then
- gSourcePath = "Live 5 CSi MASTER:content:ie:"
- else
- if gPicName = "CSI_M04.PCT" then
- gSourcePath = "Nuendo CSi MASTER:content:ie:"
- else
- gSourcePath = gTestPath
- the itemDelimiter = ":"
- delete item the number of items in gSourcePath of gSourcePath
- gSourcePath = gSourcePath & ":"
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- else
- if gPicName = "CSI_V3.PCT" then
- gSourcePath = "CSi vol.3\content\movie\"
- else
- if gPicName = "CSI_V4.PCT" then
- gSourcePath = "CSi vol.4\content\ie\"
- else
- gSourcePath = gTestPath
- the itemDelimiter = ":"
- delete item the number of items in gSourcePath of gSourcePath
- gSourcePath = gSourcePath & ":"
- end if
- end if
- end if
- setupTopics(gMovieMap)
- setupMovieNames(gMovieMap)
- setupBackgroundScreen(gPicName)
- if isCDinDrive() then
- vPathTestResult = checkForCD(gTestPath)
- else
- vPathTestResult = EMPTY
- end if
- if vPathTestResult = 1 then
- itemDelSaver = the itemDelimiter
- the itemDelimiter = ":"
- vCDName = item 1 of gMovieMap
- serialnumbercheck(vCDName)
- the itemDelimiter = itemDelSaver
- else
- if isCDinDrive() then
- gCDList = findMountedCDs()
- else
- gCDList = [:]
- end if
- vDelimiterSave = the itemDelimiter
- the itemDelimiter = ":"
- if gCDList <> [:] then
- vCD = item 1 of gCDList[1]
- end if
- if the machineType <> 256 then
- vCD = vCD & ":"
- else
- vCD = vCD & ":\"
- end if
- the itemDelimiter = vDelimiterSave
- if gCDList <> [:] then
- OK = baEjectDisk(vCD)
- end if
- gCDname = vPathTestResult
- put "The correct CD-ROM was not found. Please insert the " & QUOTE & gCDname & QUOTE & " CD-ROM and stand by." into field "cd prompt text"
- put "Please select a TutorialGroup from the following list:" & RETURN & RETURN & gMapList into field "map list"
- go("CD Prompt")
- end if
- end if
- end
-